package com.lhc.dao;

import com.lhc.dataObject.ItemStockDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ItemStockDOMapper {

    int deleteByPrimaryKey(Integer id);


    int insert(ItemStockDO record);

    int decreaseStock(@Param("itemId") Integer itemId, @Param("account") Integer account);

    int insertSelective(ItemStockDO record);

    ItemStockDO selectByPrimaryKey(Integer id);

    ItemStockDO selectByItemId(Integer itemId);


    int updateByPrimaryKeySelective(ItemStockDO record);


    int updateByPrimaryKey(ItemStockDO record);
}